package thread_1;

/**
 * @Author Klys
 * @Date 2023/3/5 12:19
 * @Description
 * @Version 1.0
 */
public class RunnableThread implements Runnable {

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableThread());
        thread.start();

        Thread thread1 = new Thread(
                () -> {
                    System.out.println("我是lambda");
                }
        );
        thread1.start();
    }

    @Override
    public void run() {
        System.out.println("RunnableThread");
    }
}
